<template>
    <div>欢迎回来，{{userInfo.userName}}<br>
      <el-avatar :size="70" :src="userInfo.avator"></el-avatar>
    </div>
</template>

<script>
  export default {
    name: 'HelloCard',
    data(){
      return{
        userInfo: null,
          myComment: null
      }
    },
    created () {
      this.userInfo = JSON.parse(window.localStorage.getItem("userInfo"));
      this.myComment = JSON.parse(window.localStorage.getItem("myComment"));
      console.log(this.userInfo)
    }
  }
</script>

<style scoped>

</style>
